package com.bianmaba.configuration;


import lombok.Data;
import lombok.extern.log4j.Log4j2;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Log4j2
@Configuration
@EnableConfigurationProperties(MetricPropertiesConfiguration.MetricProperties.class)
public class MetricPropertiesConfiguration {
    public MetricPropertiesConfiguration() {
        log.info("加载可信作战平台配置信息");
    }

    @Data
    @ConfigurationProperties(prefix = "metric")
    public static class MetricProperties {
        private Integer CollectedDataExpire = 12;
        private MicroService microService;

        @Data
        public static class MicroService {
            private String iterationGetByProjectNoAndDatetime;
            private String memberListByProjectNo;
            private String projectsGetByNo;
            private String clientId;
            private String clientSecret;
        }
    }

}
